#include <iostream>
#include <memory>

#include "poll_service.hpp"
using namespace std;

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        cout << "使用错误，正确使用：" << argv[0] << "port" << endl;
        return 1;
    }


    uint16_t port = atoi(argv[1]);
    unique_ptr<PollService> ss(make_unique<PollService>(port));

    ss->Init();
    ss->Loop();

    return 0;
}